const key = 'headlineToken';

// 添加token
function setToken(obj) {
    localStorage.setItem(key,JSON.stringify(obj));
}

// 获取token
function getToken() {
    return JSON.parse(localStorage.getItem(key));
}

// 删除token
function delToken() {
    localStorage.removeItem(key);
}

export {setToken,getToken,delToken}